import { service } from '@/api/request.js'

export const appList = (query) => {
  return service({
    url: '/app/app_list',
    method: 'get',
    params: query,
  })
}

export const appDetail = (query) => {
  return service({
    url: '/app/app_detail',
    method: 'get',
    params: query,
  })
}

export const appStat = (query) => {
  return service({
    url: '/app/app_stat',
    method: 'get',
    params: query,
  })
}

export const appDelete = (query) => {
  return service({
    url: '/app/app_delete',
    method: 'get',
    params: query,
  })
}

export const appAdd = (data) => {
  return service({
    url: '/app/app_add',
    method: 'post',
    data,
  })
}

export const appUpdate = (data) => {
  return service({
    url: '/app/app_update',
    method: 'post',
    data,
  })
}
